﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;
using FazaDemo.PL.ViewModelEntities;

namespace FazaDemo.PL.Mapping
{
    class FloatCharEnumSelectItemsConvertWorker : ICharEnumSelectItemsConvertWorker
    {

        private readonly IList<DropDownCondition> _fDropDowns = new List<DropDownCondition>
        {
            new DropDownCondition{Id = 0, Name = " "}, 
            new DropDownCondition{Id = 1, Name = "Без условий"}, 
            new DropDownCondition{Id = 2, Name = "Равно (=)"}, 
            new DropDownCondition{Id = 3, Name = "Не равно (#)"}, 
            new DropDownCondition{Id = 4, Name = "Больше (>)"}, 
            new DropDownCondition{Id = 5, Name = "Меньше (<)"}, 
            new DropDownCondition{Id = 6, Name = "Не больше (<=)"}, 
            new DropDownCondition{Id = 7, Name = "Не меньше (>=)"}, 
            new DropDownCondition{Id = 8, Name = "Из перечня (... , ...)"}, 
            new DropDownCondition{Id = 9, Name = "Вне перечня (... , ...)"}, 
            new DropDownCondition{Id = 10, Name = "В диапазоне (от ... до ...)"}, 
            new DropDownCondition{Id = 11, Name = "Вне диапазона"}
        };

        public IEnumerable<SelectListItem> Convert()
        {
            return new SelectList(_fDropDowns, "Id", "Name", 0);
        }
    }
}
